package com.sfexpress.tools.entity;

import java.util.ArrayList;
import java.util.List;

public class MysqlTableInfo {
	
	private MysqlConnInfo connInfo;
	
	private String tableName;
	private String tableType;
	private String engine;
	
	// 列定义信息
	private List<MysqlColumnInfo> columnInfoList = new ArrayList<MysqlColumnInfo>();

	// 表级约束
	private List<MysqlTableConstInfo> tbLevelConstInfoList = new ArrayList<MysqlTableConstInfo>();
	
	// 列级约束
	private List<MysqlColumnConstInfo> colLevelConstInfoList = new ArrayList<MysqlColumnConstInfo>();
	
	// 索引信息
	private List<MysqlIndexInfo> indexInfoList = new ArrayList<MysqlIndexInfo>();
	
	public String toString() {
		
		StringBuffer sb = new StringBuffer();
		sb.append("[")
			.append("tableName = " + this.tableName + ", ")
			.append("tableType = " + this.tableType + ", ")
			.append("engine = " + this.engine)
			.append("]");
		
		return sb.toString();
	}

	public MysqlConnInfo getConnInfo() {
		return connInfo;
	}

	public void setConnInfo(MysqlConnInfo connInfo) {
		this.connInfo = connInfo;
	}

	public String getTableName() {
		return tableName;
	}

	public void setTableName(String tableName) {
		this.tableName = tableName;
	}

	public String getTableType() {
		return tableType;
	}

	public void setTableType(String tableType) {
		this.tableType = tableType;
	}

	public String getEngine() {
		return engine;
	}

	public void setEngine(String engine) {
		this.engine = engine;
	}

	public List<MysqlColumnInfo> getColumnInfoList() {
		return columnInfoList;
	}

	public void setColumnInfoList(List<MysqlColumnInfo> columnInfoList) {
		this.columnInfoList = columnInfoList;
	}

	public List<MysqlTableConstInfo> getTbLevelConstInfoList() {
		return tbLevelConstInfoList;
	}

	public void setTbLevelConstInfoList(List<MysqlTableConstInfo> tbLevelConstInfoList) {
		this.tbLevelConstInfoList = tbLevelConstInfoList;
	}

	public List<MysqlColumnConstInfo> getColLevelConstInfoList() {
		return colLevelConstInfoList;
	}

	public void setColLevelConstInfoList(List<MysqlColumnConstInfo> colLevelConstInfoList) {
		this.colLevelConstInfoList = colLevelConstInfoList;
	}

	public List<MysqlIndexInfo> getIndexInfoList() {
		return indexInfoList;
	}

	public void setIndexInfoList(List<MysqlIndexInfo> indexInfoList) {
		this.indexInfoList = indexInfoList;
	}

	
	
}
